package cn.unknowpupil.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * Created at 2020/11/5 by w10g <br>
 * Initialize EmailDto ... <br>
 *
 * @author unknowpupil
 * @since 0.0.1
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class EmailDto {
    @NotNull(message = "邮件配置Id为必填项目")
    @ApiModelProperty(value = "配置Id")
    private Long id;

    @ApiModelProperty(value = "标题")
    @NotEmpty(message = "标题为必填项目")
    private String subject;

    @ApiModelProperty(value = "测试人(对个可用逗号隔开 ps:（xx@.qq.com,yy@qq.com）")
    @NotEmpty(message = "测试人员为必填项目")
    private String toUsers;

    @ApiModelProperty(value = "内容")
    @NotEmpty(message = "内容为必填项目")
    private String content;
}
